package com.iakuil.app.service.converter;

import com.iakuil.app.common.core.DefaultConverterConfig;
import com.iakuil.app.domain.entity.User;
import com.iakuil.app.domain.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.core.convert.converter.Converter;

/**
 * 用户转换器
 *
 * @author Kai
 * @date 2024-01-26
 **/
@Mapper(config = DefaultConverterConfig.class)
public interface UserToUserDtoConverter extends Converter<User, UserDto> {
    UserToUserDtoConverter INSTANCE = Mappers.getMapper(UserToUserDtoConverter.class);
}
